package com.design.decorator.shape;

// 边框样式装饰者类，实现了装饰者接口
class BorderStyleDecorator implements ShapeDecorator {
    private Shape shape;
    private String borderStyle;

    public BorderStyleDecorator(Shape shape, String borderStyle) {
        this.shape = shape;
        this.borderStyle = borderStyle;
    }

    @Override
    public void draw() {
        shape.draw();
        System.out.println("Border Style: " + borderStyle);
    }

    @Override
    public String getDescription() {
        return shape.getDescription() + " with Border Style: " + borderStyle;
    }
}
